package com.idak.jaxb;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlValue;

public class Query {
	
	private String name;
	private String query;
	
	@XmlAttribute(name="name")
	public final String getName() {return name;}
	
	@XmlValue
	public final String getQuery() {return query;}
	
	public final void setName(String name) {this.name = name;}
	public final void setQuery(String query) {this.query = query;}
	
	@Override
	public String toString() {
		return "["+name+" : "+query+"]";
	}
}
